]> dgit.raspbian.org Git - gnome-shell.git/commit
showOSD: Fix handling of defined 'falsy' parameters
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 1 Aug 2018 11:27:07 +0000 (13:27 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 1 Aug 2018 11:58:23 +0000 (13:58 +0200)
commitd908940ef37dd6a5b72148ded8b995c17a01604a
tree0feb3bcd305c3e5d56d33a1fb57aca63ae6b39cd
parenteeda54f24d4f14aabedb1a2febbcee2a54db7a5d
showOSD: Fix handling of defined 'falsy' parameters

For the OSD, all parameters except for the icon are optional - if the
caller doesn't include the 'label' option, the OSD won't show a label
etc.

While this makes sense for an API, it means that we have to be careful
to correctly differentiate an option that was omitted and an option
that has a 'falsy' value like false or 0.

Unfortunately since commit ccaae5d3c we no longer do, with the result
that OSDs meant for the first monitor will show up on all, and a level
of 0 is presented as no level bar instead of an empty one, whoops.

https://bugzilla.gnome.org/show_bug.cgi?id=791669
js/ui/shellDBus.js